package com.starryx.blog.dao;

import com.starryx.blog.po.Type;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface TypeMapper {
    Type findOneById(@Param("id") Long id);

    Type findOneByName(@Param("name") String name);

    List<Type> findAll();

    Integer count();

    int save(Type type);

    int update(Type type);

    void delete(@Param("id") Long id);
}
